#grantPayslip {
  padding: 20px;
  position: relative;
  height: 100%;
  overflow-y: hidden;

  .content {
    display: flex;
    height: calc(100% - 70px);
    justify-content: space-between;

    .peopleList,
    .infoList {
      width: 285px;
      min-width: 250px;
    }

    .peopleList {
      .checkAll {
        position: absolute;
        right: 20px;
      }

      :deep(.el-card__body) {
        height: 100%;
        padding: 15px;
        padding-right: 5px;

        .el-checkbox-group {
          height: 96%;
          padding-right: 15px;
          overflow-x: auto;

          .checkItem {
            width: 100%;
          }
        }
      }
    }

    .checkItem {
      margin-bottom: 20px;

      &:last-child {
        margin-bottom: 0;
      }
    }

    .infoList {
      height: 100%;
      padding-right: 10px;
      overflow-y: hidden;

      .staffInfo {
        height: calc(50% - 10px);
        margin-bottom: 20px;

        :deep(.el-card__body) {
          overflow-y: auto;
          padding: 15px;
          height: calc(100% - 44px);
        }
      }
    }

    .preview {
      flex: 1;
      margin: 0 20px;
      max-width: 350px;
      min-width: 320px;

      // min-height: 568px;
      // width: 75%;
      &>* {
        display: inline-block;
      }

      .previewContent {
        width: 100%;
        height: 100%;
        // min-height: 568px;
        border-radius: 40px;
        padding: 15px;
        box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.2);
        background-color: #fff;
        // margin-left: 50%;
        // transform: translateX(-50%);

        .hiddenBox {
          border-radius: 32px;
          overflow: hidden;
          height: 100%;

          border: 1px solid #cbcbcb;

          .previewInfo {
            height: 100%;
            overflow: auto;
            border-radius: 30px;
            background-color: #f7f7f7;

            &>* {
              background-color: #fff;
            }

            .title {
              text-align: center;
              height: 50px;
              line-height: 50px;
              font-weight: 600;
            }

            .total {
              color: #ffffff;
              height: 120px;
              background-color: #5d90fd;
              display: flex;
              flex-direction: column;
              align-items: center;
              justify-content: center;

              span {
                height: 30px;
                line-height: 30px;

                // &:last-child {
                //   font-size: 28px;
                //   font-weight: 500;
                //   margin-top: 10px;
                // }
              }
            }

            .infoForm {
              padding: 0 10px;
              margin-top: 10px;

              .infoTitle {
                height: 40px;
                line-height: 40px;
              }

              .listItem {
                height: 40px;
                padding: 0 10px;
                border-top: 1px solid #e4e4e4;
                color: #666666;
                display: flex;
                align-items: center;
                justify-content: space-between;

              }
            }
          }
        }
      }
    }
  }

  .footer {
    width: 100%;
    left: 0;
    bottom: 0;
    height: 70px;
    line-height: 70px;
    border-top: 1px solid #cbcbcb;
    position: absolute;
    text-align: center;

    &>* {
      margin: 0 50px;
    }
  }

  :deep(.el-card) {
    // background-color: red;
    box-shadow: none;
    border: 1px solid #cbcbcb;

    .el-card__header {
      background-color: #f5f8fd;
      border: none;
      padding: 10px 20px;
      margin-bottom: 0;
      position: relative;
    }
  }
}

.peopleList,
.staffInfo,
.salaryInfo,
.infoForm {

  .title,
  .infoTitle {
    &:before {
      content: "";
      height: 100%;
      padding: 0 1.5px;
      border-radius: 5px;
      margin-right: 10px;
      background-color: #5d90fd;
    }
  }
}

.listItem {
  display: flex;
  justify-content: space-between;
  height: 40px;

  // line-height: 40px;
  // align-items: center;
  &>* {
    height: 40px;
    line-height: 40px;
    display: flex;
    align-items: center;
  }

  .checkItem {
    width: calc(100% - 40px);

    // height: 100%;
    :deep(.el-checkbox__label ){
      width: 100%;
      // color: red;
      white-space: nowrap;
      overflow-x: hidden;
      text-overflow: ellipsis;
    }
  }

  .btnList {
    // height: 100%;
    font-size: 14px;
    width: 40px;
    position: relative;
    color: #409eff;
    cursor: pointer;

    .el-icon-top,
    .el-icon-bottom {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
    }

    .el-icon-top {
      left: 0;
    }

    .el-icon-bottom {
      right: 0;
    }
  }
}